package com.wenjoying.user.service.feign;

import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;

@Component
public class GoodsServiceFallback implements GoodsService {

    @Override
    public JSONObject testApi(@RequestBody JSONObject jsonObject) {
        jsonObject.put("code", 200);
        jsonObject.put("message", "服务降级了---");
        jsonObject.put("data", null);
        return jsonObject;
    }
}
